package com.wdd.myplatform.entity;

import cn.hutool.core.date.DatePattern;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wdd
 * @since 2022-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TEasyexcel对象", description="")
public class TEasyexcel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ExcelIgnore
    private String id;

    @ApiModelProperty(value = "字符串标题")
    @ExcelProperty("字符串标题")
    private String strTitle;

    @ApiModelProperty(value = "日期标题")
    @ExcelProperty("日期标题")
    @DateTimeFormat(DatePattern.NORM_DATETIME_PATTERN)
    @ColumnWidth(20)
    private Date dateTitle;

    @ApiModelProperty(value = "数字标题")
    @ExcelProperty("数字标题")
    private Double doubleDataTitle;


    public static final String ID = "id";

    public static final String STR_TITLE = "str_title";

    public static final String DATE_TITLE = "date_title";

    public static final String DOUBLE_DATA_TITLE = "double_data_title";

}
